package com.motorhome.h5.service;

import com.motorhome.base.util.Result;
import com.motorhome.h5.domain.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author: John
 */
public interface LoginService {

    Result doLogin(HttpServletRequest request, HttpServletResponse response, String phone, String code, String openId);

    Result doReg(User loginUser, String password, String realname);

    Result sendCode(String phone);

    void setUserVipInfo(User user);
}
